<template>
    <van-swipe class="my-swipe" :autoplay="1000" indicator-color="white">
        <van-swipe-item v-for="item in bannerArr" :key="item.id">
            <img :src="item.image_url" alt="" />
        </van-swipe-item>
    </van-swipe>
</template>

<script setup lang='ts'>
import { defineProps } from 'vue';
// 导入类型
import type { Ibanneritem } from '@/types/homeType'
// const props = defineProps(['bannerArr'])
const props = defineProps<{
    bannerArr: Array<Ibanneritem>
}>()

</script>
<style lang="scss" scoped>
.van-swipe-item {
    img {
        width: 100%;
    }
}
</style>